package com.chengyu.eyc.model;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "eyc_ver_person")
public class EycVerPerson extends BaseModel implements Serializable {
    @Id
    @Column(name = "VER_PERSON_ID")
    private String verPersonId;

    /**
     * 检测站或是其他商店ID
     */
    @Column(name = "INSP_STATION_OR_SHOP_ID")
    private String inspStationOrShopId;

    /**
     * 授权核销人，从表eyc_user中取得
     */
    @Column(name = "USER_ID")
    private String userId;

    /**
     * 失效标志
     */
    @Column(name = "IS_ACTIVE")
    private Boolean isActive;

    /**
     * 说明
     */
    @Column(name = "REMARK")
    private String remark;

    /**
     * 逻辑删除
     */
    private Boolean deleted;

    private static final long serialVersionUID = 1L;

    /**
     * @return VER_PERSON_ID
     */
    public String getVerPersonId() {
        return verPersonId;
    }

    /**
     * @param verPersonId
     */
    public void setVerPersonId(String verPersonId) {
        this.verPersonId = verPersonId == null ? null : verPersonId.trim();
    }

    /**
     * 获取检测站或是其他商店ID
     *
     * @return INSP_STATION_OR_SHOP_ID - 检测站或是其他商店ID
     */
    public String getInspStationOrShopId() {
        return inspStationOrShopId;
    }

    /**
     * 设置检测站或是其他商店ID
     *
     * @param inspStationOrShopId 检测站或是其他商店ID
     */
    public void setInspStationOrShopId(String inspStationOrShopId) {
        this.inspStationOrShopId = inspStationOrShopId == null ? null : inspStationOrShopId.trim();
    }

    /**
     * 获取授权核销人，从表eyc_user中取得
     *
     * @return USER_ID - 授权核销人，从表eyc_user中取得
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 设置授权核销人，从表eyc_user中取得
     *
     * @param userId 授权核销人，从表eyc_user中取得
     */
    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    /**
     * 获取失效标志
     *
     * @return IS_ACTIVE - 失效标志
     */
    public Boolean getIsActive() {
        return isActive;
    }

    /**
     * 设置失效标志
     *
     * @param isActive 失效标志
     */
    public void setIsActive(Boolean isActive) {
        this.isActive = isActive;
    }

    /**
     * 获取说明
     *
     * @return REMARK - 说明
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置说明
     *
     * @param remark 说明
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     * 获取逻辑删除
     *
     * @return deleted - 逻辑删除
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * 设置逻辑删除
     *
     * @param deleted 逻辑删除
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", verPersonId=").append(verPersonId);
        sb.append(", inspStationOrShopId=").append(inspStationOrShopId);
        sb.append(", userId=").append(userId);
        sb.append(", isActive=").append(isActive);
        sb.append(", remark=").append(remark);
        sb.append(", deleted=").append(deleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}